package com.magiccompass.alipay.barcode.util;

import java.util.HashMap;
import java.util.Map;

public class OperatorRoleUtil {
	private static OperatorRoleUtil instance = new OperatorRoleUtil();	
	private Map<Integer,String> roleMap = new HashMap<Integer,String>();
	
	private OperatorRoleUtil(){
		if(roleMap.isEmpty()){
			roleMap.put(2, "Manager");
			roleMap.put(3, "Cashier");
		}
	};
	
	public static OperatorRoleUtil getInstance(){
		return instance;
	}

	public Map<Integer, String> getRoleMap() {
		return roleMap;
	}

	public String getRoleNameFromId(Integer roleId){
		return roleMap.get(roleId);
	}
}
